My issue
Using an assignment operator, output the remainder when length is divided by 3.
My code
#include <stdio.h>
int main() {
int length = 11; // Initialize length with 11
int remainder;
// Using the assignment operator to store the remainder
remainder = length % 3;
// Output the result
printf(" 3 remainder %d\n", remainder);
return 0;
}
Learning course: Learn C Programming
Problem Link: https://www.codechef.com/learn/course/rcpit-programming-c/RCPITLPC08/problems/RCPITCP44