Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as C by print_char ( 8 years ago )
#include<stdio>

void nchars(int num,int ch){
    for(int i=0;i<=num;i++){
        printf("%c",ch);
    }
    printf("\r\n");
}

int main() {
   int num=10;
   char ch = 'a';
   nchars(num,ch);
}

 

Revise this Paste

Children: 93184
Your Name: Code Language: